﻿<phone:PhoneApplicationPage 
    x:Class="FinanceCalculators.Views.FixedVsAdjustable.FixedVsAdjustable"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="HomeBuyerTools" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Fixed Vs Adjustable" Margin="9,-7,0,0" FontSize="45"/>
        </StackPanel>
        <ScrollViewer Grid.Row="1">
            <!--ContentPanel - place additional content here-->
            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Orientation="Vertical">
                    <TextBlock  Margin="-180,0,0,0" Name="tbMortgageLoanAmount" Text="Mortgage Loan Amount " Width="269" FontSize="25" />
                    <TextBox  Name="txtMortgageLoanAmount" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240" TextChanged="txtMortgageLoanAmount_TextChanged" />
                </StackPanel>
                <StackPanel Grid.Row="1" Orientation="Vertical">
                    <TextBlock  Margin="-180,0,0,0" Name="tbTermofMortgageLoan" Text="Term of Mortgage Loan"  Width="280" FontSize="25" />
                    <toolkit:ListPicker x:Name="lstpicfixedvsadj" Margin="-220,0,0,0" Width="220" ItemCountThreshold="7">
                        <ListBoxItem Content="30 Years"></ListBoxItem>
                        <ListBoxItem Content="25 Years"></ListBoxItem>
                        <ListBoxItem Content="20 Years"></ListBoxItem>
                        <ListBoxItem Content="15 Years"></ListBoxItem>
                        <ListBoxItem Content="12 Years"></ListBoxItem>
                        <ListBoxItem Content="10 Years"></ListBoxItem>
                        <ListBoxItem Content="5 Years"></ListBoxItem>
                    </toolkit:ListPicker>
                </StackPanel>
                <StackPanel Grid.Row="2" Orientation="Vertical">
                    <TextBlock  Margin="-200,0,0,0" Name="tbExpectedAdjustment" Text="Expected Adjustment" Width="239" FontSize="25" />
                    <TextBox Name="txtExpectedAdjustment" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240"/>
                    <TextBlock  Name="textBlock5" Margin="10,-50,100,0" Text="%" Width="33" HorizontalAlignment="Right" />
                </StackPanel>
                <StackPanel Grid.Row="3" Orientation="Vertical">
                    <TextBlock Margin="-30,0,0,0" Name="tbFixedRateMortgageInterestRate" Text="Fixed Rate Mortgage Interest Rate" Width="414" FontSize="25"/>
                    <TextBox  Name="txtFixedRateMortgageInterestRate" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240" />
                    <TextBlock  Name="textBlock7" Margin="220,-50,0,0" Text="%" Width="31" />
                </StackPanel>
                <StackPanel Grid.Row="4" Orientation="Vertical">
                    <TextBlock Margin="-120,0,0,0" Name="tbARMBeginningInterestRate" Text="ARM Beginning Interest Rate" Width="324" FontSize="25" />
                    <TextBox  Name="txtARMBeginningInterestRate" Margin="-220,0,0,0" InputScope="TelephoneNumber"  Width="240" />
                    <TextBlock  Name="textBlock9" Margin="220,-50,0,0" Text="%" Width="25" />
                </StackPanel>
                <StackPanel Grid.Row="5" Orientation="Vertical">
                    <TextBlock Margin="-40,0,0,0" Name="tbARMMonthsBefore1stAdjustment" Text="ARM Months Before 1st Adjustment"  Width="402" FontSize="25" />
                    <TextBox  Name="txtARMMonthsBefore1stAdjustment" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240" />
                    <TextBlock Name="textBlock11" Text="Months" Width="65" Margin="200,-50,0,0" />
                </StackPanel>
                <StackPanel Grid.Row="6" Orientation="Vertical">
                    <TextBlock  Margin="-200,0,0,0" Name="tbARMInterestRateCap" Text="ARM Interest Rate Cap" Width="250" FontSize="25" />
                    <TextBox Name="txtARMInterestRateCap" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240" />
                    <TextBlock Name="textBlock13" Margin="220,-50,0,0" Text="%" Width="30" />
                </StackPanel>
                <StackPanel Grid.Row="7" Orientation="Vertical">
                    <TextBlock Margin="5,0,0,0" Name="tbInterestOnlyARMBeginningInterestRate" Text="Interest Only ARM Beginning Interest Rate" TextWrapping="Wrap" FontSize="25" />
                    <TextBox  Name="txtInterestOnlyARMBeginningInterestRate" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240" />
                    <TextBlock  Name="textBlock15" Text="%" Width="20" Margin="220,-50,0,0" />

                </StackPanel>
                <StackPanel Grid.Row="8" Orientation="Vertical">
                    <TextBlock Margin="5,0,0,0" Name="tbInterestOnlyARMMonthsBefore1stAdjustment" Text="Interest Only ARM Months Before 1st Adjustment"  TextWrapping="Wrap" FontSize="25" />
                    <TextBox  Name="txtInterestOnlyARMMonthsBefore1stAdjustment" Margin="-220,0,0,0" InputScope="TelephoneNumber"  Width="240" />
                    <TextBlock Name="textBlock16" Text="Months" Width="80" Margin="200,-50,0,0" />
                </StackPanel>
                <StackPanel Grid.Row="9" Orientation="Vertical">
                    <TextBlock Margin="5,0,0,0" Name="tbInterestOnlyARMInterestRateCap" Text="Interest Only ARM Interest Rate Cap" Width="440" FontSize="25" />
                    <TextBox  Name="txtInterestOnlyARMInterestRateCap" Margin="-220,0,0,0" InputScope="TelephoneNumber" Width="240" />
                    <TextBlock  Name="textBlock20" Text="%" Width="30" Margin="220,-50,0,0" />

                </StackPanel>
                <!--<Button Content="Calculate" Name="button" Grid.Row="10" Click="button_Click1"/>-->
                <StackPanel Grid.Row="10" Orientation="Vertical">
                    <TextBlock Margin="0,0,0,0" Name="textBlock21" Text="" Width="101" />
                </StackPanel>
            </Grid>
        </ScrollViewer>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" Text="Calculate" Click="ApplicationBarIconButton_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
